const user = [
  {
    url: '/auth/auth/config',
    type: 'get',
    response: function () {
      return require('../../data/user/loginConfig.json')
    }
  },
  {
    url: '/admin/menu',
    type: 'get',
    response: (config) => {
      return require('../../data/user/menu.json')
    }
  },
  {
    url: '/admin/user/info',
    type: 'get',
    response: (config) => {
      return {
        code: '200',
        subCode: '200',
        message: '请求成功',
        success: true,
        data: {
          roles: [],
          permissions: [],
          sysUser: { username: 'Test', avatar: '' }
        }
      }
    }
  },
  {
    url: '/auth/auth/login',
    type: 'post',
    response: (config) => {
      return {
        code: 200,
        subCode: 'C100005',
        message: '用户名或密码错误！',
        success: false,
        data: { token: 'token', tokenHead: 'authentication' }
      }
    }

  }
]
module.exports = user
